home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / b / bestba.zip / {.FR < prev    next >
Text File  |  1993-03-18  |  2KB  |  89 lines

  1. @echo off
  2. Rem (C) Daniel MONTARON 1989,90,92,93.
  3. Rem MS DOS, DR DOS 3.3 +.Available release for DOS 2.x. Also available in french
  4. Rem Version pour DOS 2.x disponible.
  5. for %%x in (ERRORL,errorl,WHATKEY,whatkey,UNADDPATH,unaddpath) do if %1'==%%x' goto %1
  6. if %2'==' goto ?
  7. for %%x in (ADD,add,ADDPATH,addpath,DELS,dels,?,LISTE,liste,},Z,z) do if %1'==%%x' goto %1
  8. if exist key.com goto s
  9. echo ┤═!└u═!┤L═! >key.com
  10. :s
  11. if %2'==?' for %%x in (%3 %4 %5 %6 %7 %8 %9) do call %0 } %1 %%x
  12. if %3'==}' for %%x in (%4 %5 %6 %7 %8 %9) do call %0 z %%x %1 %2
  13. if %4'==}' for %%x in (%5 %6 %7 %8 %9) do call %0 z %%x %1 %2 %3
  14. if %5'==}' for %%x in (%6 %7 %8 %9) do call %0 z %%x %1 %2 %3 %4
  15. if %6'==}' for %%x in (%7 %8 %9) do call %0 z %%x %1 %2 %3 %4 %5
  16. set $1=%2
  17. set $=%1
  18. if %2'=={' set $1=
  19. if %2'=={' goto £
  20. if not %3'=={' goto w
  21. shift
  22. shift
  23. if %2'==' goto w
  24. %$% %2 %$1%
  25. goto £
  26. :ADD
  27. echo set %2=%%%2%%;%3>$.bat
  28. call $
  29. del $.bat
  30. goto w
  31. :ADDPATH
  32. set path0 = %PATH%
  33. @echo on
  34. PATH %PATH%;%2
  35. @echo off
  36. goto w
  37. :DELS
  38. %0 del ? %2 %3 %4 %5 %6 %7 %8 %9
  39. :$
  40. echo Confirme %2 %3 (o/N) ?
  41. key
  42. if errorlevel=79 if not errorlevel=80 %2 %3
  43. if errorlevel=111 if not errorlevel=112 %2 %3
  44. if %2'==del' if exist %3 echo %3 non effacé.
  45. if %2'==del' if not exist %3 echo %3 effacé.
  46. goto w
  47. :ERRORL
  48. set $$=Error Level 
  49. :EL
  50. for %%x in (0 1 2) do if errorlevel=%%x00 set $1=%%x
  51. for %%x in (0 1 2 3 4 5 6 7 8 9) do if errorlevel=%$1%%%x0 set $=%$1%%%x
  52. for %%x in (0 1 2 3 4 5 6 7 8 9) do if errorlevel=%$%%%x set $1=%$%%%x
  53. echo %$$% = %$1%
  54. goto w
  55. :LISTE
  56. for %%x in ( %2 %3 %4 %5 %6 %7 %8 %9) do echo %%x 
  57. goto w
  58. :Z
  59. for %%x in (%3 %4 %5 %6 %7 %8 %9) do %%x %2
  60. goto w
  61. :WHATKEY
  62. Echo Taper une touche
  63. key
  64. set $$=Key
  65. goto EL
  66. :UNADDPATH
  67. @echo on
  68. path %PATH0%
  69. @echo off
  70. goto w
  71. :?
  72. set $=fic? fic*... 
  73. echo (c) Daniel Montaron 1989,90,92,93. -Usage:
  74. echo %0 ADD env path      env = PATH, LIB, APPEND, INCLUDE....
  75. echo %0 ADDPATH path
  76. echo %0 DELS %$%
  77. echo %0 ERRORL
  78. echo %0 LISTE %$%
  79. echo %0 UNADDPATH
  80. echo %0 WHATKEY
  81. echo %0 commande parametres { %$%
  82. echo %0 command ? %$%
  83. echo %0 command command2 ... } %$%  command= COPY, DEL, DIR, REN...  
  84. :w
  85. set $=
  86. set $1=
  87. set $$=
  88.